<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping>
    <class name="com.ogilvy.cms.bean.CmsComponent" table="CMS_COMPONENT" >
        <id name="cmcId" type="java.lang.Integer">
            <column name="CMC_ID" />
            <generator class="identity" />
        </id>
        <property name="cmcComponentNo" type="java.lang.String">
            <column name="CMC_COMPONENT_NO" length="50" not-null="true" />
        </property>
        
        <property name="cmcComponentName" type="java.lang.String">
            <column name="CMC_COMPONENT_NAME" length="50" />
        </property>
        
         <property name="cmcComponentType" type="java.lang.String">
            <column name="CMC_COMPONENT_TYPE" length="50" />
         </property>
        
         <property name="cmcComponentContent" type="java.lang.String">
            <column name="CMC_COMPONENT_CONTENT"/>
         </property>
        
         <property name="cmcIsEdit" type="java.lang.Integer">
            <column name="CMC_IS_EDIT" />
         </property>
         
         <property name="cmcPubStatus" type="java.lang.Integer">
            <column name="CMC_PUB_STATUS"  />
         </property>
         
         <property name="cmcLastuser" type="java.lang.String">
            <column name="CMC_LASTUSER" length="50" />
         </property>
         
         <property name="cmcLasttime" type="java.util.Date">
            <column name="CMC_LASTTIME"/>
         </property>
        
    </class>
</hibernate-mapping>
